package cn.leyaber.hrm.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ma.rui.kai
 * @since 2020-12-11
 */
@TableName("order_name")
public class Name extends Model<Name> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("user_wholename_id")
    private Long userWholenameId;
    private String orderSn;
    private String paySn;
    private Date orderDate;
    private Integer orderState;
    private BigDecimal orderPrice;
    private String orderRemark;
    private Date successDate;
    @TableField("sf_goods_details_id")
    private Long sfGoodsDetailsId;
    @TableField("sf_examine_merchants_information_id")
    private Long sfExamineMerchantsInformationId;
    private Long address;
    private Integer orderType;
    //付款时间
    private Long lastPayTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserWholenameId() {
        return userWholenameId;
    }

    public void setUserWholenameId(Long userWholenameId) {
        this.userWholenameId = userWholenameId;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getPaySn() {
        return paySn;
    }

    public void setPaySn(String paySn) {
        this.paySn = paySn;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getOrderRemark() {
        return orderRemark;
    }

    public void setOrderRemark(String orderRemark) {
        this.orderRemark = orderRemark;
    }

    public Date getSuccessDate() {
        return successDate;
    }

    public void setSuccessDate(Date successDate) {
        this.successDate = successDate;
    }

    public Long getSfGoodsDetailsId() {
        return sfGoodsDetailsId;
    }

    public void setSfGoodsDetailsId(Long sfGoodsDetailsId) {
        this.sfGoodsDetailsId = sfGoodsDetailsId;
    }

    public Long getSfExamineMerchantsInformationId() {
        return sfExamineMerchantsInformationId;
    }

    public void setSfExamineMerchantsInformationId(Long sfExamineMerchantsInformationId) {
        this.sfExamineMerchantsInformationId = sfExamineMerchantsInformationId;
    }

    public Long getAddress() {
        return address;
    }

    public void setAddress(Long address) {
        this.address = address;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Long getLastPayTime() {
        return lastPayTime;
    }

    public void setLastPayTime(Long lastPayTime) {
        this.lastPayTime = lastPayTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Name{" +
        ", id=" + id +
        ", userWholenameId=" + userWholenameId +
        ", orderSn=" + orderSn +
        ", paySn=" + paySn +
        ", orderDate=" + orderDate +
        ", orderState=" + orderState +
        ", orderPrice=" + orderPrice +
        ", orderRemark=" + orderRemark +
        ", successDate=" + successDate +
        ", sfGoodsDetailsId=" + sfGoodsDetailsId +
        ", sfExamineMerchantsInformationId=" + sfExamineMerchantsInformationId +
        ", address=" + address +
        ", orderType=" + orderType +
        ", lastPayTime=" + lastPayTime +
        "}";
    }
}
